package cn.star.jots.film.mapper;

import cn.star.jots.film.pojo.dto.FilmQuery;
import cn.star.jots.film.pojo.dto.FilmSubjectQuery;
import cn.star.jots.film.pojo.dto.UserFilmQuery;
import cn.star.jots.film.pojo.entity.Film;
import cn.star.jots.film.pojo.vo.FilmDataVO;
import cn.star.jots.film.pojo.vo.FilmVO;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@ResponseBody
public interface FilmMapper {
    List<FilmVO> selectAll(FilmQuery filmQuery);

    List<FilmVO> selectSubjectFilm(FilmSubjectQuery filmSubjectQuery);

    void insert(Film film);

    void deleteFilm(Long filmId);

    void update(Film film);

    List<FilmVO> selectUserFilm(UserFilmQuery userFilmQuery);

    FilmDataVO selectData();
}
